package com.bleeth.flow.web.service;

import com.bleeth.flow.web.model.FlowFunctionModel;
import org.springframework.stereotype.Component;
import xyz.erupt.jpa.dao.EruptDao;

import javax.annotation.Resource;

/**
 * @author YuePeng
 * date 2019-08-13.
 */
@Component
public class FlowService {

    @Resource
    private EruptDao eruptDao;


    public FlowFunctionModel findByFunctionUid(String funcUid) {
        FlowFunctionModel flowFunctionModel = eruptDao.queryEntity(FlowFunctionModel.class, "func_uid = " + funcUid);
        return flowFunctionModel;
    }


}
